import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { ECopyOrderType } from "./ECopyOrderType";
type int = number;
//class SCopyFindPlayer
    
    export  class SCopyFindPlayer extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCopyFindPlayer();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeString(this.name);
            arg1.writeInt(this.level);
            arg1.writeInt(this.warfare);
            arg1.writeInt(this.career);
            this.orderType.__write(arg1);
            arg1.writeInt(this.startIndex);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.name = arg1.readString();
            this.level = arg1.readInt();
            this.warfare = arg1.readInt();
            this.career = arg1.readInt();
            this.orderType = ECopyOrderType.__read(arg1);
            this.startIndex = arg1.readInt();
            return;
        }

        public /* const */_type: int=20420;

        public /* var */name: string;

        public /* var */level: int;

        public /* var */warfare: int;

        public /* var */career: int;

        public /* var */orderType: ECopyOrderType;

        public /* var */startIndex: int;

        public static /* var */_regist: SCopyFindPlayer;
    }

            SCopyFindPlayer._regist = new SCopyFindPlayer(true);
        